num = 0
let events = require('events');
exports.timer = new events.EventEmitter();
setInterval(function(){
    num+=1
    exports.timer.emit('tick',num);
},1000)